﻿<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" autoFlush="true"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<a href="/money.mrqa?action=menu">返回</a>
<br>
<span class="title1">奖励用户</span>
<table class="qlist" width="100%" align="center" cellpadding="0" cellspacing="0" style="background-color:#FAFCFC;border:1px solid #ccc;">
    <html:form action="/money" method="post" onsubmit="return validate(this);" enctype="multipart/form-data">
    <html:hidden property="action" value="award"/>
    <tr>
        <td align="right">用户ID</td>
        <td>
            <html:text property="userIds" size="30"/>（多个用户请用;或,分隔）
        </td>
    </tr>
    <tr>
        <td align="right">奖励积分</td>
        <td>
        	<html:text property="money" size="3" maxlength="15"/>
        </td>
    </tr>
    <tr>
    	<td align="right">验证码</td>
        <td>
            <input type="text" name="vc" value="" size="8">*(输入右边图片上的数字)<img src="<%=request.getContextPath()%>/vcimg" width="40" height="20" border="0"/>&nbsp;&nbsp;&nbsp;<input type="submit" value="奖励"/>
        </td>
    </tr>
    </html:form>
</table>
<script type="text/javascript">
    function validate(pForm)
    {
        var userIds = pForm.userIds.value;
        if(userIds == "")
        {
            alert("[用户ID]必须");
            pForm.userIds.focus();
            return false;        
        }
        var money = pForm.money.value;
        if(money == "")
        {
            alert("[奖励积分]必须");
            pForm.money.focus();
            return false;        
        }
        return true;
    }
</script>